package com.jcl.recruit.resume.logic;

import com.jcl.recruit.resume.mapper.ResumeBasicInfoMapper;
import com.jcl.recruit.resume.model.ResumeBasicInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SearchResumeLogic
 * @Description TODO
 * @Author yyliu
 * @Date 2018/11/13 10:32
 * @Version 1.0
 **/
@Component
public class ResumeBasicInfoLogic implements ResumeBasicInfoMapper {

    @Autowired
    ResumeBasicInfoMapper resumeBasicInfoMapper;

    @Override
    public List<Map<String, Object>> findAllMap(String corpCode) {
        return resumeBasicInfoMapper.findAllMap(corpCode);
    }

    @Override
    public List<ResumeBasicInfo> findAll(String corpCode) {
        return resumeBasicInfoMapper.findAll(corpCode);
    }

    @Override
    public List<ResumeBasicInfo> findList(List<Integer> ids) {
        return resumeBasicInfoMapper.findList(ids);
    }

    @Override
    public Map<String, Object> findOneMap(Integer id) {
        return resumeBasicInfoMapper.findOneMap(id);
    }

    @Override
    public ResumeBasicInfo findOne(Integer id) {
        return resumeBasicInfoMapper.findOne(id);
    }

    @Override
    public ResumeBasicInfo findOneByExternalKey(String corpCode, String externalKey) {
        return resumeBasicInfoMapper.findOneByExternalKey(corpCode, externalKey);
    }

    @Override
    public int add(ResumeBasicInfo entity) {
        return resumeBasicInfoMapper.add(entity);
    }

    @Override
    public int update(ResumeBasicInfo entity) {
        return resumeBasicInfoMapper.update(entity);
    }

    @Override
    public int delete(Integer id) {
        return resumeBasicInfoMapper.delete(id);
    }
}
